package com.alibaba.define.service;

import com.alibaba.common.ResponseResult;
import com.alibaba.define.domain.UserDO;
import com.alibaba.define.domain.vo.BlogUserLoginVO;
import com.alibaba.define.domain.vo.UserInfoVO;
import com.alibaba.define.service.request.RegisterRequest;
import com.alibaba.define.service.request.UpdateUserRequest;

/**
 * @author : hanyang
 * @date : 2023-11-03 09:10
 **/

public interface UserService {

    ResponseResult<BlogUserLoginVO> login(UserDO userDO);

    ResponseResult<Void> logout();

    ResponseResult<UserInfoVO> getUserInfo();

    ResponseResult<Void> updateUserInfo(UpdateUserRequest request);

    ResponseResult<Void> register(RegisterRequest request);
}
